
    <?php
        $this->load->helper('url');
        $this->load->model(array('general_model','seo_model'));


        $general = $this->general_model->select_entries();
        foreach ($general as $val)
                    {
                       $gen_id = $val['gen_id'];
                       $gen_sitetitle = $val['gen_sitetitle'];
                       $gen_footer = $val['gen_footer'];
                       $gen_favicon = $val['gen_favicon'];
                    }
        $seo = $this->seo_model->select_entries();
            foreach ($seo as $val)
                        {
                           $seo_id = $val['seo_id'];
                           $seo_sitedescription = $val['seo_sitedescription'];
                           $seo_metakey = $val['seo_metakey'];
                           $seo_headercode = $val['seo_headercode'];
                           $seo_footercode = $val['seo_footercode'];
                        }   
    ?>
    <div style="clear: both"></div>
    <script type="text/javascript">

      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-8272585-15']);
      _gaq.push(['_trackPageview']);

      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();

    </script>
   
    <div style="width: 100%; height: auto; margin: 20px; text-align: center"><?=$seo_footercode?><br/><?=$gen_footer?></div>

</body>
</html>